package com.example.blog_system.service;

import com.example.blog_system.entity.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface TagService {
    Tag createTag(String name);
    void deleteTag(Long id);
    Tag getTagById(Long id);
    Tag getTagByName(String name);
    Page<Tag> getAllTags(Pageable pageable);
    boolean existsByName(String name);
} 